package com.peas.platform.module.icims.contract.initial.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同执行-重启")
public class ContractInitialRestartVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    private Long contractInitialId;

    @Comment(value = "批次号")
    @ApiModelProperty(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    private String batch;

    // 【用户表】
    @Comment(value = "重启经办人")
    @ApiModelProperty(value = "重启经办人")
    private Long restartUserId;

    // 【组织架构表】
    @Comment(value = "重启经办人部门")
    @ApiModelProperty(value = "重启经办人部门")
    private Long restartDepartmentId;

    @Comment(value = "重启原因")
    @ApiModelProperty(value = "重启原因")
    @Size(max = 1000, message = "重启原因不能超过1000个字符")
    private String restartReason;

    @Comment(value = "重启状态", enumType = "ContractInitialRestartState")
    @ApiModelProperty(value = "重启状态", notes = "枚举取值:ContractInitialRestartState")
    @Size(max = 20, message = "重启状态不能超过20个字符")
    private String state;

}
